import jieba
f=open(r'C:\三国演义.txt','r', encoding='utf-8')
s=f.read()
lst=jieba.lcut(s)
dic={}
for x in lst:
    if len(x)>1:
        dic[x]=dic.get(x,0)+1
newlst=[(v,k) for k,v in dic.items()]
newlst.sort(reverse=True)
print(newlst[:3])